<template>
  <div>
    <div class="statusBar">我是状态栏</div>
    <div class="top">
      我的
      <img src="../assets/images/ic_settings.png" alt="" />
    </div>
    <div class="bg">
      <div class="circle"></div>
      <div class="right"></div>
    </div>
    <div class="remind">
      <van-cell is-link title="提醒" @click="show = true" closeable="false" />
      <van-action-sheet v-model="show" :actions="actions" @select="onSelect" />
      <div class="word">暂无提醒</div>
    </div>
    <ul>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
      <li>
        <img src="../assets/images/ic_my_likes.png" alt="" />
        <div class="word">喜欢</div>
      </li>
    </ul>
  </div>
</template>

<script>
import { Toast } from 'vant'

export default {
  data () {
    return {
      show: false,
      actions: [
        { name: '设置提醒' },
        { name: '取消提醒' },
        { name: '已有提醒' }
      ]
    }
  },
  methods: {
    onSelect (item) {
      // 默认情况下点击选项时不会自动收起
      // 可以通过 close-on-click-action 属性开启自动收起
      this.show = false
      Toast(item.name)
    }
  }
}
</script>

<style scoped lang="scss">
html,
body {
  background-color: #f8f8f8;
}
* {
  box-sizing: border-box;
}
.statusBar {
  width: 750px;
  height: 40px;
  background-color: black;
  color: white;
  font-size: 40px;
  position: absolute;
  top: 0;
}
.top {
  width: 750px;
  height: 90px;
  position: absolute;
  top: 40px;
  text-align: center;
  color: black;
  line-height: 90px;
  font-size: 34px;
  border-bottom: 2px solid grey;
}
.top img:nth-of-type(1) {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 18px;
  right: 50px;
}
.bg {
  width: 750px;
  height: 245px;
  background: url("../assets/images/live_player_bg.jpg");
  background-size: 100% 100%;
  // margin-top: -40px;
  // margin-top: -70px;;
  margin-top: 30px;;
  padding-top: 50px;
  .circle {
    width: 150px;
    height: 150px;
    background-color: white;
    border-radius: 50%;
    margin-left: 45px;
    float: left;
  }
  .right {
    width: 530px;
    height: 160px;
    background-color: skyblue;
    float: left;
    margin-left: 15px;
  }
}
.remind {
  width: 750px;
  height: 190px;
  float: left;
  margin-top: 30px;
  border-bottom: 1px solid grey;
  margin-bottom: 30px;
  .word {
    text-align: center;
    margin-top: 40px;
    color: rgb(180, 180, 180);
  }
}
.van-cell {
  border-bottom: 1px solid grey;
  border-top: 1px solid grey;
}
li {
  width: 187px;
  height: 187px;
  float: left;
  border-bottom: 1px solid grey;
  .word{
    text-align: center;
    font-size: 25px;;
    margin-top: 5px;;
  }
  img{
    width: 45px;
    height: 45px;
    margin-left: 70px;;
    margin-top: 55px;;
  }
}
</style>
